<style>
    .am-navbar-nav a,a:link,a:visited ,a:hover ,a:active{
        color:#8A8A8A;
    }
</style>

<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "
     id="" style="max-width: 640px;left: auto">
    <ul class="am-navbar-nav am-cf am-avg-sm-4">
        <li >
            <a href="__APP__/Home/Index" class="">
                <eq name="Think.CONTROLLER_NAME" value="Index">
                    <img src="__PUBLIC__/assets/i/home_yes.png" alt="首页"/>
                    <span class="am-navbar-label" style="color: #F6DB7F;">首页</span>
                    <else/>
                        <img src="__PUBLIC__/assets/i/home.png" alt="首页"/>
                        <span class="am-navbar-label">首页</span>
                </eq>
            </a>
        </li>
        <li >
            <a onclick="goToRoomByLevel()" class="">
                <eq name="Think.CONTROLLER_NAME" value="Room">
                    <img src="__PUBLIC__/assets/i/ring_yes.png" alt="擂台"/>
                    <span class="am-navbar-label" style="color: #F6DB7F;">擂台</span>
                    <else/><img src="__PUBLIC__/assets/i/ring.png" alt="擂台"/>
                    <span class="am-navbar-label">擂台</span>
                </eq>
            </a>
        </li>
        <li >
            <a href="__APP__/Home/Race" class="">
                <eq name="Think.CONTROLLER_NAME" value="Race">
                    <img src="__PUBLIC__/assets/i/event_yes.png" alt="赛事"/>
                    <span class="am-navbar-label" style="color: #F6DB7F;">赛事</span>
                    <else/><img src="__PUBLIC__/assets/i/event.png" alt="赛事"/>
                    <span class="am-navbar-label">赛事</span>
                </eq>
            </a>
        </li>
        <li >
            <a href="__APP__/Home/Goods" class="">
                <eq name="Think.CONTROLLER_NAME" value="Goods">
                    <img src="__PUBLIC__/assets/i/award_yes.png" alt="领奖台"/>
                    <span class="am-navbar-label" style="color: #F6DB7F;">领奖台</span>
                    <else/><img src="__PUBLIC__/assets/i/award.png" alt="领奖台"/>
                    <span class="am-navbar-label">领奖台</span>
                </eq>
            </a>
        </li>
        <li >
            <a href="__APP__/Home/Me" class="">
                <eq name="Think.CONTROLLER_NAME" value="Me">
                    <img src="__PUBLIC__/assets/i/me_yes.png" alt="我的"/>
                    <span class="am-navbar-label" style="color: #F6DB7F;">我的</span>
                    <else/><img src="__PUBLIC__/assets/i/me.png" alt="我的"/>
                    <span class="am-navbar-label">我的</span>
                </eq>
            </a>
        </li>
    </ul>
</div>
<script>
//
    function goToRoomByLevel(){
        $.ajax({
            type: "POST",
            url: "__APP__/Home/Room/checkLevel",
            async: false,
            dataType: "json",
            success: function (data) {
                if(data.success){
                    window.location.href='__APP__/Home/Room/index';
                }else{
                    layer.confirm('对不起，您尚未完善段位信息无法进入，请先完善！', {
                        btn: ['立即前往','稍后再说'], //按钮
                        closeBtn:0,
                        shadeClose:true,
                        btnAlign:'c'
                    }, function(){
                        window.location.href = '__APP__/Home/Index/settings';
                    }, function(){

                    });
                }
            },
            error: function (data) {
                layer.msg('服务器繁忙！');
            }
        });
    }
</script>